package com.ruoyi.worksite.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * MAC地址验证业务对象 sys_mac_role
 *
 * @author ruoyi
 * @date 2023-07-23
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SysMacRoleBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * MAC地址
     */
    @NotBlank(message = "MAC地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String macAddr;

    /**
     * 别名
     */
    @NotBlank(message = "别名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 生效时间
     */
    @NotNull(message = "生效时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date effectiveTime;

    /**
     * 失效时间
     */
    @NotNull(message = "失效时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date expirationTime;

    /**
     * 备注
     */
    private String remark;


}
